﻿<Window x:Class="FontParser.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="480" Width="640">
    <Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="auto" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="auto" />
			<RowDefinition Height="auto" />
			<RowDefinition Height="auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="auto" />
		</Grid.RowDefinitions>
		<ComboBox Margin="5" Name="comboBox1" SelectionChanged="comboBox1_SelectionChanged" Grid.Column="1">
			<ComboBox.ItemTemplate>
				<DataTemplate>
					<TextBlock Height="25" Text="{Binding FontName}" FontFamily="{Binding FontName}" FontSize="16" VerticalAlignment="Center"/>
				</DataTemplate>
			</ComboBox.ItemTemplate>
		</ComboBox>
		<Label HorizontalAlignment="Right" Margin="5" Name="label1">Font:</Label>
		<Label HorizontalAlignment="Right" Margin="5" Name="label2" Grid.Row="1">Font Size:</Label>
		<Label HorizontalAlignment="Right" Margin="5" Name="label3" Grid.Row="2">Sample Text:</Label>
		<TextBox Text="16" Margin="5" Name="fontSize" TextChanged="fontSize_TextChanged" Grid.Row="1" Grid.Column="1" Width="100" HorizontalAlignment="Left"/>
		<TextBox x:Name="sampleTextBox" Margin="5" Grid.Column="1" Grid.Row="2" Text="Sample Text" TextChanged="TextBox_TextChanged"/>
		<TextBlock Grid.Column="1" Grid.Row="3" Margin="5" Name="sampleTextBlock" TextWrapping="Wrap" Grid.RowSpan="2" Text="Sample Text" FontSize="16"/>
		<Button x:Name="saveButton" Grid.ColumnSpan="2" Grid.Row="4" Width="150" HorizontalAlignment="Right" Margin="5" Click="saveButton_Click">Save</Button>
	</Grid>
</Window>
